package com.ssm.subject.domain.convert;

import com.ssm.subject.domain.bo.SubjectLikedBO;
import com.ssm.subject.infra.basic.entity.SubjectLiked;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface SubjectLikedBOConvert {
    SubjectLikedBOConvert INSTANCE = Mappers.getMapper(SubjectLikedBOConvert.class);

    // BO转实体
    SubjectLiked subjectLikedBoToSubjectLiked(SubjectLikedBO subjectLikedBO);

    // 实体list转BOlist
    List<SubjectLikedBO> subjectLikedsToBos(List<SubjectLiked> subjectLikedList );
}
